package com.helloniu.fl {

import com.helloniu.fl.NCHandler;
import com.helloniu.fl.SOHandler;
import com.helloniu.fl.util.Tool;

public class ContextManager {
    public function ContextManager() {
    }

    public static function getInstance():ContextManager {
        return contextManager;
    }

    public function initConnection(ancHandler:NCHandler, asoHandler:SOHandler, auserID:String):void {
        this.ncHandler = ancHandler;
        this.soHandler = asoHandler;
        this._userID = auserID;
    }

    public function getNC():NCHandler {
        return ncHandler;
    }

    public function getSO():SOHandler {
        return soHandler;
    }

    public function getUID():String {
        return _userID;
    }

    public function getUserName():String {
        Tool.alert("not implement!");
        return null;
    }

    private var ncHandler:NCHandler = null;
    private var soHandler:SOHandler = null;
    private var _userID:String;

    private static var contextManager:ContextManager = new ContextManager();

}
}